/**
Author ffpan
Date 2010-04-04
Version 1.0
**/
$(document).ready(function(){
	//初始化中介的tips
	initTips($("#ainput"));
	initTips($("#fyinput"));

	var lastel = $("#switchbody1");
	$("#switch input[type='radio']").each(function(){
		$(this).bind("click" , function(){
			//this.checked = "checked";
			var el = $(document.getElementById($(this).attr("forshow")));
			if(lastel!=null){lastel.css("display" , "none");}
			el.css("display" , "");
			lastel = el;
		});
	});

	//初始化右侧的滑动菜单
	/*var stag = $("#toolbox div:first");
	$("#toolbox").bind("click" , function(e){
		var el = e.target;
		if(el.tagName=="P"&&el.className=="m_sztitle"){
			var showEl = $(el.parentNode.getElementsByTagName("div")[0]);
			if(stag!=null){stag.slideUp("slow");}
			showEl.slideDown("slow");
			stag = showEl;
		}
	});

	//初始化搜索处的input框
	
	
	var lastel = $("#switchbody1");
	$("#switch").find("label").each(function(){
		$(this).bind("click" , function(){
			this.getElementsByTagName("input")[0].checked = "checked";
			var el = $(document.getElementById($(this).attr("for")));
			el.css("display" , "");
			if(lastel!=null){lastel.css("display" , "none");}
			lastel = el;
		});
	});*/


}); 